package jp.tkym.labs.ws;

import java.util.Set;
import java.util.concurrent.CopyOnWriteArraySet;

class WebSocketMembers{
	private static final WebSocketMembers singleton = new WebSocketMembers();
	private final Set<MyWebSocket> members = new CopyOnWriteArraySet<MyWebSocket>();
	private WebSocketMembers(){}
	static WebSocketMembers getInstance(){
		return singleton;
	}
	Set<MyWebSocket> asSet(){
		return members;
	}
}